<?php

Route::prefix('admin')->group(function(){
    $path = 'Admin';

       Route::prefix('admin')->group(function()use($path){
         Route::get('navTree', $path.'\Admin\NavController@navTree');//资金流水
      });

    Route::prefix('auth')->group(function()use($path){
        Route::resource('role', $path.'\Auth\RoleController');//资金流水
    });


    Route::prefix('common')->group(function()use($path){
        Route::resource('banner', $path.'\Common\BannerController');//申请相关
        Route::resource('file', $path.'\Common\FileController');//用户相关
        Route::resource('consultType', $path.'\Common\ConsultTypeController');//验证码
        Route::resource('courseType', $path.'\Common\CourseTypeController');// 文件
        Route::resource('fileType', $path.'\Common\FileTypeController');// 文件
        Route::resource('file', $path.'\Common\FileController');// 文件
        Route::resource('user', $path.'\Common\UserController');// 文件
        Route::post('uploadInfo', $path.'\Common\UploadController@uploadInfo');// 后台上传文件
    });

    Route::prefix('money')->group(function()use($path){
        Route::resource('record', $path.'\Money\RecordController');//资金流水

    });

    Route::prefix('express')->group(function()use($path){
        Route::resource('course', $path.'\Express\CourseController');//所有数据
        Route::resource('info', $path.'\Express\InfoController');//所有数据
        Route::resource('news', $path.'\Express\NewsController');//所有数据
        Route::resource('problem', $path.'\Express\ProblemController');//所有数据
    });


    Route::prefix('test')->group(function()use($path){

        Route::resource('test_detail', $path.'\Test\TestDetailController');//自动添加-ADMIN
        Route::resource('test', $path.'\Test\TestController');//自动添加-ADMIN
    });


    Route::prefix('user')->group(function()use($path){

        Route::resource('actionlog', $path.'\User\ActionLogController');//自动添加-ADMIN

    });












});
